#pragma once

class CWriteLog
{
public:
	CWriteLog(void);
	~CWriteLog(void);
	CString m_strLogFile;
	FILE* m_stream;

public:
	inline static CWriteLog& GetInstance(){
		static CWriteLog Inst;
		return Inst;
	}

	//LPCTSTR GetLastError() const;
	//void SetLastError(LPCTSTR lpszError);
	//void AddLastError(LPCTSTR lpszError);

	//void FormatLastError(LPCTSTR lpszFormat, ...);
	//void FormatAddLastError(LPCTSTR lpszFormat, ...);LPCTSTR

	void WriteLog(CString strLog);
	void Init();
};

#define theLog CWriteLog::GetInstance()
